#ifndef FUNCTION_DEFINITION_H
#define FUNCTION_DEFINITION_H

#include "Function.h"
#include "ParamNode.h"
#include "StatementList.h"

class FunctionDefinition : public Function
{
	public:
		FunctionDefinition(char * Name, int Id, ParamNode * P, StatementList * C)
			: Function(Name, Id), p(P), codeBlock(C)
		{}
		~FunctionDefinition();
		ParamNode * getParamNode();
		StatementList * getCodeBlock();
		void accept(Visitor & v);
		bool amIaFunctionDefinition()
		{
			return true;
		}

	private:
		ParamNode * p;
		StatementList * codeBlock;
};

#endif

